package com.gc.server.vo.down;


import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.*;
import java.io.Serializable;



import com.gc.server.entity.VoteEntity;
import com.gc.server.vo.VoteVo;

                
/**
 * 投票记录实体
 * 表名 vote
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date ${datetime}
 */
@Data
public class VoteDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //用户ID
            @ExcelProperty("用户ID")
            private Long userId;
        
                        //绘本ID
            @ExcelProperty("绘本ID")
            private Long bookId;
        
                        //投票时间
            @ExcelProperty("投票时间")
            private Date time;
        
    
    public VoteDown() {

    }

    public VoteDown(VoteVo vo) {
        VoteEntity entity = vo.getEntity();
                                    this.setId(entity.getId());
            
                                    this.setUserId(entity.getUserId());
            
                                    this.setBookId(entity.getBookId());
            
                                    this.setTime(entity.getTime());
            
            }


}
